package cn.meibang.meibanguserandclient.provider.dao;

import cn.meibang.meibanguserandclient.provider.base.BaseMeibangUserAndClientMapper;
import cn.meibang.meibanguserandclient.provider.request.ListMeibangUserAndClientRequest;
import cn.meibang.meibanguserandclient.provider.request.MeibangUserAndClientRequest;
import cn.meibang.meibanguserandclient.provider.response.MeibangUserAndClientResponse;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * 业务管理客 Dao 层
 *
 * @author yudw
 * @version 1.0
 */
public interface MeibangUserAndClientMapper extends BaseMeibangUserAndClientMapper {

    @SelectProvider(type = MeibangUserAndClientSqlProvider.class, method = "lisForPage")
    @ResultType(value = MeibangUserAndClientResponse.class)
    List<MeibangUserAndClientResponse> lisForPage(ListMeibangUserAndClientRequest request);

    @SelectProvider(type = MeibangUserAndClientSqlProvider.class, method = "list")
    @ResultType(value = MeibangUserAndClientResponse.class) List<MeibangUserAndClientResponse> list(
        MeibangUserAndClientRequest request);

    @InsertProvider(type = MeibangUserAndClientSqlProvider.class, method = "inserAll")
    int insertList(List<MeibangUserAndClientRequest> list);
}